package cn.intotw.rdcj.flash.api;

import cn.intotw.rdcj.core.bean.Result;
import cn.intotw.rdcj.flash.dto.OrderCreateReqDto;
import cn.intotw.rdcj.flash.fallback.RdcjFlashFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;


/**
 * Created by Chenxiang on 2020/4/30.
 */
@FeignClient(
        value ="rdcj-flash",
        fallbackFactory = RdcjFlashFallbackFactory.class
)
public interface RdcjFlashApi {

    /**
        获取用户信息
     * @author Chenxiang
     * @date 2020/4/30 15:01
     * @param userId
     * @return cn.intotw.rdcj.core.bean.Result<cn.intotw.rdcj.user.dto.UserDto>
     **/
    @PostMapping(
            value ="/rdcj/user/v1/order/create",
            consumes={"application/json"}
    )
    Result<OrderCreateReqDto> createOrder(Long userId);
}
